package cn.shop.utils.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 提现账户类型
 *
 * @author jzw
 * @since 2022-01-24 17:44
 */
public enum WithdrawAccountType {
	ALIPAY_PAYMENT(1, "支付宝"),
	BANK_PAYMENT(2, "银行卡");

	WithdrawAccountType(int code, String description) {
		this.code = code;
		this.description = description;
	}

	@EnumValue
	private final int code;

	@JsonValue
	private final String description;

	public int getCode() {
		return code;
	}

	public String getDescription() {
		return description;
	}
}
